This is version 1.820 for MT5

This version is well tested and is pretty stable.
Allows you to trade multiple symbols at once.

New features

Balance is shared between symbols (MarginTraders).
This is controlled by the parameter "Balance Share" (default 10)
This parameter defines how much is allocated for that symbol relative to all symbols with attached MarginTrader.
If any Balance Share is -1 - All MarginTraders switch to Single Symbol Trade Mode. This is a standard mode with no balance share and can trade only one symbol at a time. We can also force Single Symbol Mode by putting the file "MarginTrader_ForceSingleMode.txt" in the File directory.
If Balance Share is 0 - This MarginTrader is disabled (balance is 0) and balance is shared between other MarginTraders.
Calculation:
LocalBalance = AccBalance / TotalShare x BalanceShare
(TotalShare is a sum of all MT Balance Share parameters)

If any MT closes its own trades in profit, profit is automatically shared with other MT and increases local balance. Same if any MT closes its own trades in loss, loss is automatically shared with other MT and decreases local balance.

In MultiSymbolTradeMode every Symbol has its own local equity and balance, therefore it also has its own local simulated margin call. In EA parameter we can set three different types of margin call.

Orange Arrow and progress bar for adding the next position - It calculates at what price is the next position added and shows it on the chart and draws a progress bar. Tooltip shows the exact price, size and margin level at which the position will be added. This is shown only when the trade is open and "Add Automatically" is On.

This MarginTrader is limited to work only on 28 pairs/symbols + gold (xauusd), because MT5 has strange pairs and stocks and I do not know how it works on these.

Prevention for running two or more MT on the same symbol.

New function CloseAllByHedge wich closes all trades on Close button. first it opens one counter trade with total size and hedges all trades. After that it closes all trades with PositionCloseBy function. This way, all trades are closed on the same price, there is no slippage and this method is faster. This method is used when we have three or more open trades and total volume is not bigger than max allowed volume for this symbol.

In MultiSymbolTradeMode we have to be very careful when we change the "balance share", add a new MT or remove MT if we have an open trade. Any change of that type may change local balance which may automatically add new positions or may activate a local margin call.

This is a very interesting tool, we can be very creative in manipulating balance between MT instances.
